﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using LCTMoodle.Models.ViewModels;
using LCTMoodle.Helper;

namespace LCTMoodle.Service
{
    public class TuKhoaService : Service
    {
        /// <summary>
        /// Lấy từ khóa
        /// </summary>
        public static List<TuKhoaViewModel> layTuKhoa()
        {
            return executeDataReader_List<TuKhoaViewModel>
                (
                    "layTuKhoa",
                    new string[0]
                );
        }

        /// <summary>
        /// Lấy từ khóa
        /// </summary>
        /// <param name="chuoiMaTuKhoa">Chuỗi mã từ khóa</param>
        /// <returns></returns>
        public static List<TuKhoaViewModel> layTuKhoaTheoChuoiMaTuKhoa(string chuoiMaTuKhoa)
        {
            return executeDataReader_List<TuKhoaViewModel>
                (
                    "layTuKhoaTheoChuoiMaTuKhoa",
                    new object[]
                    {
                        chuoiMaTuKhoa
                    }
                );
        }
    }
}








































